package com.wei.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author wjx
 * @InterfaceName OrderClientFeign
 * @description: TODO
 * @date 2022-12-04 04:59
 * @version: 1.0
 */
@Component
@FeignClient("service-order")
public interface OrderClientFeign {

    @GetMapping("/eduorder/payment/queryPayStatus/{courseId}/{memberId}")
    public boolean queryPayStatus(@PathVariable("courseId") String courseId,
                                  @PathVariable("memberId") String memberId);


    @GetMapping("/eduorder/payment/buyCount/{courseId}")
    public Integer buyCount(@PathVariable("courseId") String courseId);
}
